/**
 * Created by xuguangyuansh on 2018/8/23.
 */
public class Chaincode {

    /** 当前将要访问的智能合约所属频道名称 */
    private String channelName;

    /** 智能合约名称 */
    private String chaincodeName;

    /** 智能合约安装路径 */
    private String chaincodePath;

    /** 智能合约版本号 */
    private String chaincodeVersion;

    /** 临时变量控制等待部署和调用的时间，以完成在发出之前的事件。当 SDK 能够接收来自于此的事件时，这个问题就会被删除 */
    private int transactionWaitTime = 100000;

    /** 临时变量控制等待部署和调用的时间，以完成在发出之前的事件。当 SDK 能够接收来自于此的事件时，这个问题就会被删除 */
    private int deployWaitTime = 120000;

    public Chaincode() { }

    public Chaincode(String channelName, String chaincodeName, String chaincodePath, String chaincodeVersion) {
        this.channelName = channelName;
        this.chaincodeName = chaincodeName;
        this.chaincodePath = chaincodePath;
        this.chaincodeVersion = chaincodeVersion;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChaincodeName() {
        return chaincodeName;
    }

    public void setChaincodeName(String chaincodeName) {
        this.chaincodeName = chaincodeName;
    }

    public String getChaincodePath() {
        return chaincodePath;
    }

    public void setChaincodePath(String chaincodePath) {
        this.chaincodePath = chaincodePath;
    }

    public String getChaincodeVersion() {
        return chaincodeVersion;
    }

    public void setChaincodeVersion(String chaincodeVersion) {
        this.chaincodeVersion = chaincodeVersion;
    }

    public int getTransactionWaitTime() {
        return transactionWaitTime;
    }

    public void setTransactionWaitTime(int transactionWaitTime) {
        this.transactionWaitTime = transactionWaitTime;
    }

    public int getDeployWaitTime() {
        return deployWaitTime;
    }

    public void setDeployWaitTime(int deployWaitTime) {
        this.deployWaitTime = deployWaitTime;
    }
}
